package com.ellricky.baselib.ui.cla

import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.andr.common.ui.activity.BaseToolBarActivity
import com.andr.common.ui.mvp.BasePresenter
import com.ellricky.baselib.R

class ClassExperienceCreateActivity : BaseToolBarActivity<Void, BasePresenter<Void>>() {

    override fun getContentLayout(): Int {
        return R.layout.activity_class_experience_create
    }

    override fun initUIView() {
        super.initUIView()
        mTvTitle.text = "创建体验班"

        val fragmentManager: FragmentManager = supportFragmentManager
        val transaction: FragmentTransaction = fragmentManager.beginTransaction()
        val leftFragment = ExperienceClassFragment.newInstance()
        transaction.add(R.id.content, leftFragment, "Experience")
        transaction.commit()
    }
}